from common.utils import blogDriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

class edit:
    url = ""
    driver = ""
    def __init__(self):
        self.url = "http://8.137.19.140:9090/blog_edit.html"
        self.driver = blogDriver.driver
        self.driver.get(self.url)

    #详情页
    def edit_test01(self):
        #标题
        self.driver.find_element(By.CSS_SELECTOR, "#title").send_keys("测试")

        self.driver.find_element(By.CSS_SELECTOR, "#submit").click()

        blogDriver.screenshot()